<template>
	<view>
		<view class="header" style="background-color: #333333;"><!-- :style="{ backgroundImage: 'url(' + imgUrl + ')' }" -->
			<view :style="{ height: `${systemInfo.statusBarHeight}px` }"></view>
			<view class="">
				<view class="search">
					<view class="iconfont icon-xiangzuo" @click="goback"></view>
					<view style="width: 100%; padding-right: 130rpx;"><u-search :action-text="fales" :placeholder="i18n.Search" v-model="where.keyword" @change="search"></u-search></view>
				</view>
				<view class="store">
					<image style="background-color: #FFFFFF;" :src="store.mer_avatar"></image>
					<view class="text">
						<text class="name">{{name}}</text>
						<u-icon style="padding-left: 10rpx; color: #FFFFFF;" name="arrow-right"></u-icon>
						<view class="score">
							<u-rate :disabled="true" size="24" :count="count" v-model="store.product_score"></u-rate>
							<span style="padding-left: 10rpx; font-size: 26rpx;">{{ store.product_score }}</span>
						</view>
					</view>
					<button hover-class="none" :class="store.care ? 'care' : ''" v-if="store.care" @click="followToggle">
						<text v-show="!store.care" class="iconfont icon-guanzhu"></text>
						{{ store.care ? i18n.Already : i18n.Concern }}
					</button>
					<button hover-class="none" :class="store.care ? 'care' : ''" v-else @click="followToggle">
						<text v-show="!store.care" class="iconfont icon-guanzhu"></text>
						{{ store.care ? i18n.Already : i18n.Concern }}
					</button>
				</view>
				<view class="nav">
					<view class="nav-cont">
						<view
							:class="{ active: navActive === 0 }"
							@click="set_where(0)"
							class="item">
							<view class="cont">
								{{i18n.Default}}
							</view>
						</view>
						<view :class="{ active: navActive === 1 }" class="item" @click="set_where(1)"><view class="cont">{{i18n.Commission}}</view></view>
						<view :class="{ active: navActive === 2 }" class="item" @click="set_where(2)"><view class="cont">新品</view></view>
						<view :class="{ active: navActive === 3 }" class="item" @click="set_where(3)"><view class="cont">{{i18n.Sales}}</view></view>
						<view :class="{ active: navActive === 4 }" class="item" @click="set_where(4)">
							<view class="cont">
								{{i18n.Price}}
								<image v-if="navActive === 4 && where.order == 'price_asc'" src="/static/images/up.png"></image>
								<image v-if="navActive === 4 && where.order == 'price_desc'" src="/static/images/down.png"></image>
							</view>
						</view>
						<view :class="{ active: navActive === 6 }" class="item" @click="select.show = false; navActive = 6; isColumn = !isColumn;">
							<view class="cont"><text :class="['layout-icon', 'iconfont', isColumn ? 'icon-pailie' : 'icon-tupianpailie']"></text></view>
						</view>
					</view>
					<view v-show="select.show && !navShow" class="select">
						<view v-for="item in select.options" :key="item.id" :class="{ active: item.id === select.selected }" class="item" @click="set_where(item.id)">
							{{ item.name }}
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 商品 -->
		<scroll-view scroll-y="true" :style="[scrolltop]" class="scrolll" @scrolltolower="loadmore()">
			<view class="goods">
				<!-- 竖向商品 -->
				<view v-for="item in storelist" :key="item.product_id" class="vertical" v-if="isColumn" @click="goGoodsDetail(item.product_id)">
					<view class="image"><image :src="item.image"></image></view>
					<view class="text">
						<view class="name">{{item.store_name}}</view>
						<view class="money-wrap">
							<view class="">
								<view class="money">
									<span>{{i18n.Commission}}:</span>
									<!-- <text>{{}}</text> -->
								</view>
								<view class="price">
									{{i18n.Sellingprice}}:￥{{ item.price }}
								</view>
							</view>
							<view class="addimg">
								<image src="../static/images/product_add.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) == -1 && !checked && !item.is_added" ></image>
								<image src="../static/images/product_added.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) != -1 && !checked" ></image>
								<image src="../static/images/product_added.png"  @click.stop="noaddgoods" v-if="item.is_added" ></image>
								<image src="../static/images/select_selected.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) != -1 && checked && !item.is_added" ></image>
							</view>
						</view>
					</view>
				</view>
				<!-- 横向商品 -->
				<view v-for="item in storelist" :key="item.product_id" class="straight" v-if="!isColumn">
					<view class="image"><image :src="item.image"></image></view>
					<view class="text">
						<view class="name">{{item.store_name}}</view>
						<view class="money-wrap">
							<view class="">
								<view class="money">
									<span>{{i18n.Commission}}:</span>
									<text>{{}}</text>
								</view>
								<view class="price">
									{{i18n.Sellingprice}}:￥{{ item.price }}
								</view>
							</view>
							<view class="addimg">
								<image src="../static/images/product_add.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) == -1 && !checked && !item.is_added" ></image>
								<image src="../static/images/product_added.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) != -1 && !checked" ></image>
								<image src="../static/images/product_added.png"  @click.stop="noaddgoods" v-if="item.is_added" ></image>
								<image src="../static/images/select_selected.png"  @click.stop="addgoods(item.product_id)" v-if="addimgarr.indexOf(item.product_id) != -1 && checked && !item.is_added" ></image>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view style="text-align: center; margin-bottom: 10rpx;">{{loadTitle}}</view><!-- 加载更多 -->
		</scroll-view>
		<!-- 加入我的店 -->
		<!-- 加入我的店 -->
		<view class="add-store">
			<view class="">
				<label>
					<checkbox @click="delallfun" :checked="checked"/>
					<text>{{i18n.checkall}}</text>
				</label>
			</view>
			<view class="add-store-fr">
				<view class="goods-sum" @click="selecAttr = !selecAttr">
					{{i18n.Gong}}{{ addgoodlist.length }}{{i18n.Jian}}
					<u-icon style="color:#BDBDBD; margin: 20rpx;" name="arrow-up"></u-icon>
				</view>
				<button type="default" class="addgoods-btn" @click="pushgoods">{{i18n.Store}}</button>
			</view>
		</view>
		<view style="position: fixed; bottom: 0; z-index: 999999;">
			<u-popup v-model="selecAttr" mode="bottom" border-radius="28" height="770rpx" width="100%">
				<view class="cart">
					<scroll-view scroll-y="true" style="height: 100%;">
						<view class="cart-item" v-for="(item, index) in addgoodlist" :key="item.product_id" @click="goGoodsDetail(item.product_id)">
							<view class="stor-list">
								<view class="list-fl"><image :src="item.image" mode="widthFix"></image></view>
								<view class="list-fr">
									<view class="list-head">{{ item.store_name }}</view>
									<view class="list-Commission">
										{{i18n.Commission}}:
										<i>{{ item.Commission }}</i>
									</view>
									<view class="list-bottom">
										<view class="price">{{i18n.Sellingprice}}:{{ item.price }}</view>
										<image class="add-img" src="../static/images/product_delete.png" @click.stop="delgoods(item.product_id)"></image>
									</view>
								</view>
							</view>
						</view>
						<image class="nogoodsimg" src="https://gbay1.dcyu.com/uploads/images/noCart.png" v-if="addgoodlist.length==0"></image>
					</scroll-view>
				</view>
			</u-popup>
		</view>
	</view>
</template> 
<script>
	const globalData = getApp().globalData;
import { mystore,open_state,followStore,unfollowStore,productlist,productadd} from '@/api/store.js';
export default {
	data() {
		return {
			checked:false,
			selecAttr:false,
			scrolltop: {
				//scroll-view高度
				height: ''
			},
			id:'',
			name:'',
			isLogin:false,
			show: false,
			count: 5,
			navActive: 0,
			store: {}, // 商铺详情
			systemInfo: uni.getSystemInfoSync(),
			imgUrl: 'https://gbay.dcyu.com/uploads/images/personal-shop_bg1.png',//头部背景
			isColumn: true,
			select: {
				show: false,
				selected: 0,
				options: [
					{
						id: 0,
						name: globalData.$t('self_support').Default
					},
					{
						id: 1,
						name:  globalData.$t('self_support').Evaluate
					}
				]
			},
			where: {
				order: '',
				keyword: '',
				page: 1,
				limit: 6
			},
			// 我的商品
			storelist:[],//商品
			addgoodlist:[],//添加商品列表
			yesgoodslength:0,//可添加的商品长度
			addimgarr:[],
			loadTitle:globalData.$t('self_support').LoadMore
		};
	},
	computed: {
   i18n() {
    return globalData.$t('self_support');
   },
  },
	methods: {
		loadmore:function(){
			setTimeout(()=>{
				this.where.limit+=6
				this.getstorelist()//获得商品信息
			},2000);
		},
		delallfun: function() {
			//全选商品
			let that =this
			this.checked = !this.checked;
			if (this.checked) {
				this.regain()
				this.storelist.map(item => {
					if(!item.is_added){
						that.addgoodlist.push(item)
						that.addimgarr.push(item.product_id)
						return item;
					}
				});
			} else {
				this.regain()
			}
		},
		addgoods: function(id) {
			//添加商品
			let that = this;
			let isadd = false;
			this.addgoodlist.some(item => {
				if (id == item.product_id) {
					isadd = true;
					return that.$util.Tips({
						title: that.i18n.Add
					});
					return true;
				}
			});
			if (!isadd) {
				this.storelist.some(item => {
					if (id == item.product_id) {
						that.addimgarr.push(item.product_id);
						that.addgoodlist.push(item);
						isadd = false;
						return true;
					}
				});
			}
			
			if(that.yesgoodslength==that.addgoodlist.length){
				that.checked=true
			}
		},
		delgoods: function(id) {
			//删除商品
			const index = this.addgoodlist.findIndex(item => item.product_id === id);
			this.addgoodlist.splice(index, 1);
			this.addimgarr.splice(index, 1);
			this.checked=false
		},
		pushgoods: function() {
			//加入我的店
			let that = this;
			let idarr = { product_id: '' };
			idarr.product_id = that.addgoodlist
				.map(item => {
					return item.product_id;
				})
				.join(',');
			productadd(idarr).then(res => {
				that.getstorelist();
				if (res.status == 200) {
					that.getstorelist();
					return that.$util.Tips({
						title: res.message
					});
				}
			}).catch(res=>{
				return that.$util.Tips({
					title: res.message
				});
			})
			this.regain()
			this.checked=false
		},
		noaddgoods:function(){
			return this.$util.Tips({
				title:that.i18n.Chun
			});
		},
		getstorelist: function() {//商品列表
			let that = this;
			productlist(that.where)
				.then(res => {
					that.storelist = res.data.list;
					let loadend =res.data.list.length < that.where.limit;
					that.loadend = loadend;
					that.loadTitle = loadend ? that.i18n.YiLoadMore : that.i18n.LoadMore;
					that.yesgoodslength=0
					res.data.list.map(res=>{
						if(!res.is_added){
							that.yesgoodslength++
						}
					})
				})
				.catch(err => {
					return that.$util.Tips({
						title: res.message
					});
				});
		},
		// 关注商铺
		follow: function() {
			followStore(this.id).then(res => {
				if (res.status === 200) {
					this.store.care = true;
				}
				this.$util.Tips({
					title: res.message
				});
			});
		},
		// 取消关注
		unfollow: function() {
			unfollowStore(this.id).then(res => {
				if (res.status === 200) {
					this.store.care = false;
				}
				this.$util.Tips({
					title: res.message
				});
			});
		},
		// 设置是否关注
		followToggle: function() {
			this.store.care ? this.unfollow() : this.follow();
		},
		goGoodsDetail(id) {//跳转详细页
			let that =this
			uni.navigateTo({
				url: `/pages/store/goods_detail/index?goodsid=${id}&storeid=${that.store.mer_id}`
			})
		},
		search:function(){//关键字搜索
			this.getstorelist();
		},
		goback: function() {
			uni.navigateBack();
		},
		// 选择条件展示商品
		set_where: function(param) {
			switch (param) {
				case 0:
					this.navActive = 0;
					this.where.order = '';
					this.getstorelist();
					break;
				case 1:
					this.navActive = 1;
					this.where.order = '';
					this.getstorelist();
					break;
				case 2:
					this.navActive = 2;
					this.where.order = 'is_new';
					this.getstorelist();
					break;
				case 3:
					this.navActive = 3;
					this.where.order = 'sales';
					this.getstorelist();
					break;
				case 4:
					this.navActive = 4;
					this.sortPrice = !this.sortPrice;
					this.where.order = this.sortPrice ? 'price_asc' : 'price_desc';
					this.getstorelist();
					break;
			}
		},
		// 获得head信息
		mystore: function() {
			let that = this;
			mystore().then(res => {
				that.store = res.data;
			}).catch(err => {
					this.$util.Tips({
						title: err
					})
				})
		},
		viewstatus:function(){//查看开店状态
			let that =this
			open_state().then(res=>{
				if(res.status==200){
					switch(res.data.open_state){
						case 0:
							uni.redirectTo({
							    url: '/pages/store/privatestop/index'
							});
						break;
						case 1:
							uni.redirectTo({
							    url: '/pages/store/privatestop/index'
							});
						break;
						case 3:
							uni.redirectTo({
							    url: '/pages/store/store_type/index'
							});
						break;
					}
				}
			}).catch(err=>{
				return that.$util.Tips({
					title: err
				});
			})
		},
		regain:function(){
			this.addgoodlist = undefined;
			this.addgoodlist = new Array();
			this.addimgarr = undefined;
			this.addimgarr = new Array();
		}
	},
	onLoad(option) {
		this.id=option.mer_id
		this.name=option.name
	},
	onShow() {
		this.mystore();//获得头部信息
		this.viewstatus()//查看开店状态
		this.getstorelist()//商品列表
		let that = this;
		uni.getSystemInfo({
			success: resu => {
				const query = uni.createSelectorQuery();
				query
					.select('.header')
					.boundingClientRect(res => {
						that.scrolltop.height = resu.screenHeight - res.bottom-49 + 'px';
					})
					.exec();
			}
		});
	}
};
</script>
<style lang="scss">
	.care{
		background-image: none!important;
		border: 1px solid #fff;
		background-color: transparent;
	}
	.slot-content {
		z-index: 1000;
		height: 100rpx;
		text-align: center;
		line-height: 100rpx;
		font-weight: 300rpx;
		font-size: 30rpx;
		color: #C0C4CC;
		padding-left: 30rpx;
		}
.supplier_store{
	height: 100%;
}
.header {
	width: 100%;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	.search {
		display: flex;
		align-items: center;
		/* #ifdef H5 */
		padding-top: 10rpx;
		/* #endif */
		/* #ifdef MP */
		margin-top: 10rpx;
		/* #endif */
		.icon-xiangzuo {
			margin: 0 20rpx;
			color: #ffffff;
		}
	}
	.store {
		position: relative;
		z-index: 6;
		display: flex;
		align-items: center;
		padding-right: 20rpx;
		padding-left: 20rpx;
		padding-top: 20rpx;
		padding-bottom: 22rpx;
		image {
			width: 74rpx;
			height: 74rpx;
			border-radius: 6rpx;
			margin-right: 20rpx;
		}
		.text {
			flex: 1;
			min-width: 0;
			margin-right: 20rpx;
			.name {
				flex: 1;
				min-width: 0;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				font-weight: bold;
				font-size: 32rpx;
				line-height: 1;
				color: #ffffff;
			}
			.score {
				display: flex;
				align-items: center;
				margin-top: 17rpx;
				font-weight: 400;
				font-size: 24rpx;
				line-height: 1;
				color: #ffffff;

				.star {
					position: relative;
					width: 111rpx;
					height: 19rpx;
					margin-right: 10rpx;
					background: url(../../columnGoods/images/star.png) left top/100% 100% no-repeat;
					overflow: hidden;

					view {
						position: absolute;
						top: 0;
						left: 0;
						width: 100%;
						height: 100%;
						background: url(../../columnGoods/images/star_active.png) left top/111rpx 19rpx no-repeat;
					}
				}
			}
		}

		button {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 113rpx;
			height: 48rpx;
			border-radius: 24rpx;
			background-image: linear-gradient(-90deg, rgba(246, 122, 56, 1) 0%, rgba(241, 27, 9, 1) 100%);
			font-weight: 500;
			font-size: 22rpx;
			color: #ffffff;

			.iconfont {
				margin-right: 6rpx;
				font-size: 22rpx;
			}

			&.gary {
				background-color: #999;
			}
		}
	}
	.nav {
		position: relative;

		.nav-cont {
			display: flex;
			align-items: center;
			height: 84rpx;
			.item {
				flex: 1;
				display: flex;
				justify-content: center;
				align-items: center;
				min-width: 0;

				.cont {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 116rpx;
					height: 44rpx;
					border-radius: 22rpx;
					font-weight: 500;
					font-size: 24rpx;
					color: #ffffff;

					.arrow-icon {
						margin-left: 10rpx;
						font-size: 18rpx;
					}

					.layout-icon {
						font-size: 32rpx;
					}

					.icon-pailie {
						font-size: 32rpx;
					}

					image {
						width: 15rpx;
						height: 21rpx;
						margin-left: 7rpx;
					}
				}
			}

			.active {
				.cont {
					background-color: #ffffff;
					font-weight: bold;
					color: #fd342a;
				}
			}
		}

		.select {
			position: absolute;
			top: 100%;
			left: 0;
			z-index: 2;
			width: 100%;
			padding-right: 40rpx;
			padding-bottom: 28rpx;
			padding-left: 74rpx;
			border-bottom-right-radius: 24rpx;
			border-bottom-left-radius: 24rpx;
			background-color: #ffffff;

			.item {
				margin-top: 28rpx;
				font-size: 24rpx;
				color: #454545;
			}

			.active {
				background: url(../../../static/images/active.png) right center/20rpx no-repeat;
				color: #e93323;
			}
		}
	}
}
.scrolll {
	background-color: #f5f5f5;
	width: 100%;
	.goods{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 0 20rpx 20rpx;
		// 竖向
		.vertical {
			width: 345rpx;
			height: 554rpx;
			border-radius: 16rpx;
			margin-top: 20rpx;
			background-color: #ffffff;
			.image {
				width: 345rpx;
				height: 345rpx;
				padding:15rpx 15rpx 0 15rpx;
				image {
					display: block;
					width: 100%;
					height: 100%;
				}
			}
		
			.text {
				padding: 20rpx 20rpx 25rpx;
		
				.name {
					text-overflow: -o-ellipsis-lastline;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
					height: 80rpx;
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
				}
		
				.money-wrap {
					display: flex;
					align-items: center;
					flex-wrap: nowrap;
					justify-content: space-between;
					.money {
						width: 100%;
						margin-top: 12rpx;
						font-size: 26rpx;
						color: #fd342a;
						span{
							display: block;
							height: 48rpx;
							font-size: 24rpx;
						}
						text {
							font-weight: bold;
							font-size: 34rpx;
							line-height: 1;
						}
					}
					.price{
						width: 100%;
						height: 33rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: #222222;
					}
					.addimg{
						width: 48rpx !important;
						height: 48rpx !important;
						border-radius: 50%;
						image{
							width: 100%;
							height: 100%;
						}
					}
		
				}
			}
		}
		// 横向
		.straight{
			display: flex;
			flex-wrap: wrap;
			width: 100%;
			height: 238rpx;
			border-radius: 16rpx;
			margin-top: 20rpx;
			background-color: #ffffff;
			padding:24rpx 24rpx;
			.image {
				width: 190rpx;
				height: 190rpx;
				image {
					display: block;
					width: 100%;
					height: 100%;
				}
			}
					
			.text {
				padding:0 20rpx 0 ;
				flex: 1;
				.name {
					text-overflow: -o-ellipsis-lastline;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
					height: 80rpx;
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
				}
					
				.money-wrap {
					display: flex;
					align-items: center;
					flex-wrap: nowrap;
					justify-content: space-between;
					.money {
						width: 100%;
						margin-top: 12rpx;
						font-size: 26rpx;
						color: #fd342a;
						span{
							display: block;
							height: 48rpx;
							font-size: 24rpx;
						}
						text {
							font-weight: bold;
							font-size: 34rpx;
							line-height: 1;
						}
					}
					.price{
						width: 100%;
						height: 33rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: #222222;
					}
					.addimg{
						width: 48rpx !important;
						height: 48rpx !important;
						background: #EAEAEA;
						border-radius: 50%;
						image{
							width: 100%;
							height: 100%;
						}
					}
					
				}
			}
		}
	}
}

//加入我的店
.add-store {
	position: fixed;
	bottom: 0;
	z-index: 999999999999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 30rpx;
	width: 100%;
	height: 98rpx;
	background-color: #ffffff;
	.add-store-fr {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		.goods-sum {
			image {
				padding: 0 40rpx 0 16rpx;
				width: 24rpx;
				height: 24rpx;
			}
		}
		.addgoods-btn {
			width: 260rpx;
			height: 80rpx;
			background: #fd342a;
			border-radius: 40px;
			font-size: 32rpx;
			font-weight: 400;
			line-height: 80rpx;
			color: #ffffff;
		}
	}
}
.mask {
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
}
.cart {
	z-index: 99999999999;
	height: 680rpx;
	background: #ffffff;
	border-radius: 20px 20px 0px 0px;
	padding: 40rpx 30rpx 0 30rpx;
	.cart-item {
		overflow: hidden;
		height: 202rpx;
		background-color: #ffffff;
		.stor-list {
			display: flex;
			flex-wrap: wrap;
			.list-fl {
				margin-right: 20rpx;
				width: 141rpx;
				height: 141rpx;
				background: #ffffff;
				image {
					width: 100%;
				}
			}
			.list-fr {
				flex: 1;
				padding-bottom: 30rpx;
				border-bottom: 1px solid #eaeaea;
				.list-head {
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					width: 432rpx;
					font-size: 28rpx;
					font-weight: bold;
					margin-bottom: 12rpx;
					color: #222222;
				}
				.list-sub {
					margin-right: 12rpx;
					width: 112rpx;
					height: 34rpx;
					background: #ffece8;
					border-radius: 17px;
					font-size: 20rpx;
					font-weight: 400;
					line-height: 34rpx;
					text-align: center;
					color: #de5855;
				}
				.list-Commission {
					display: flex;
					align-items: flex-end;
					font-weight: 400;
					color: #fd342a;
					font-size: 24rpx;
					i {
						margin-left: 10rpx;
						font-size: 34rpx;
						font-weight: bold;
						color: #fd342a;
					}
				}
				.list-bottom {
					display: flex;
					justify-content: space-between;
					margin-top: 8rpx;
					height: 48rpx;
					.prece {
						font-size: 24rpx;
						font-weight: 400;
						line-height: 33px;
						color: #222222;
					}
					.add-img {
						width: 48rpx;
						height: 48rpx;
					}
				}
			}
		}
	}
	.nogoodsimg{
		width: 400rpx;
		height: 300rpx;
		margin: 150rpx 150rpx;
	}
}
.cart {
	z-index: 99999999999;
	height: 680rpx;
	background: #ffffff;
	border-radius: 20px 20px 0px 0px;
	padding: 40rpx 30rpx 0 30rpx;
	.cart-item {
		overflow: hidden;
		height: 202rpx;
		background-color: #ffffff;
		.stor-list {
			display: flex;
			flex-wrap: wrap;
			.list-fl {
				margin-right: 20rpx;
				width: 141rpx;
				height: 141rpx;
				background: #ffffff;
				image {
					width: 100%;
				}
			}
			.list-fr {
				flex: 1;
				padding-bottom: 30rpx;
				border-bottom: 1px solid #eaeaea;
				.list-head {
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					width: 432rpx;
					font-size: 28rpx;
					font-weight: bold;
					margin-bottom: 12rpx;
					color: #222222;
				}
				.list-sub {
					margin-right: 12rpx;
					width: 112rpx;
					height: 34rpx;
					background: #ffece8;
					border-radius: 17px;
					font-size: 20rpx;
					font-weight: 400;
					line-height: 34rpx;
					text-align: center;
					color: #de5855;
				}
				.list-Commission {
					display: flex;
					align-items: flex-end;
					font-weight: 400;
					color: #fd342a;
					font-size: 24rpx;
					i {
						margin-left: 10rpx;
						font-size: 34rpx;
						font-weight: bold;
						color: #fd342a;
					}
				}
				.list-bottom {
					display: flex;
					justify-content: space-between;
					margin-top: 8rpx;
					height: 48rpx;
					.prece {
						font-size: 24rpx;
						font-weight: 400;
						line-height: 33px;
						color: #222222;
					}
					.add-img {
						width: 48rpx;
						height: 48rpx;
					}
				}
			}
		}
	}
	.nogoodsimg{
		width: 400rpx;
		height: 300rpx;
		margin: 150rpx 150rpx;
	}
}
</style>
